package com.buba.commodity.service.impl;

import com.buba.commodity.dao.ProductImageMapper;
import com.buba.commodity.pojo.ProductImage;
import com.buba.commodity.service.ProductImageService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service         //@Service 用在服务提供者中，在类或者接口中声明
@DubboService   //暴露服务
public class ProductImageServiceImpl implements ProductImageService {
    private ProductImageMapper productImageMapper;

    @Override
    public List<ProductImage> selProductImage() {
        return productImageMapper.selProductImage();
    }

    @Autowired
    public void setProductImageMapper(ProductImageMapper productImageMapper) {
        this.productImageMapper = productImageMapper;
    }
}
